package com.cazor.dg.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 地灾鉴权登录历史对象 adg_login_token_his
 *
 * @author cazor
 * @date 2023-11-23
 */
@TableName("adg_login_token_his")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AdgLoginTokenHis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水号 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 返回代码 */
    @Excel(name = "返回代码")
    private Integer code;

    /** 返回处理消息 */
    @Excel(name = "返回处理消息")
    private String message;

    /** 成功标志 */
    @Excel(name = "成功标志")
    private String success;

    /** 令牌数据 */
    @Excel(name = "令牌数据")
    private String token;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private Long times;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(Integer code)
    {
        this.code = code;
    }

    public Integer getCode()
    {
        return code;
    }
    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getMessage()
    {
        return message;
    }
    public void setSuccess(String success)
    {
        this.success = success;
    }

    public String getSuccess()
    {
        return success;
    }
    public void setToken(String token)
    {
        this.token = token;
    }

    public String getToken()
    {
        return token;
    }
    public void setTimes(Long times)
    {
        this.times = times;
    }

    public Long getTimes()
    {
        return times;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("message", getMessage())
                .append("success", getSuccess())
                .append("token", getToken())
                .append("times", getTimes())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}